home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: Borland C's tmpnam()
- Date: Sun, 31 Mar 96 12:55:46 GMT
- Organization: none
- Message-ID: <828276946snz@genesis.demon.co.uk>
- References: <AD75E5DC9668E2A52@mcdiala13.it.luc.edu> <Pine.A32.3.91.960322134158.23347A-100000@red.weeg.uiowa.edu> <AD78E5E796681EC58@mcdialb10.it.luc.edu> <827626790snz@genesis.demon.co.uk> <AD7CDFD39668AABD2@mcdiala01.it.luc.edu>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <AD7CDFD39668AABD2@mcdiala01.it.luc.edu>
- VArase@varase.it.luc.edu "Verne Arase" writes:
-
- >In article <827626790snz@genesis.demon.co.uk>,
- >Lawrence Kirby <fred@genesis.demon.co.uk> wrote:
- >
- > >>It seems to be a good start for a serious tempname(), however :-).
- > >
- > >The C language standard has no concept of a directory so, unless I
- > >misunderstand you, I can't see what this would do differently from
- > >tmpnam().
- >
- >Perhaps Borland C is supported on more than one platform?
-
- Why would that make any difference?
-
- >I thought that only DOS/Intel offspring platforms were supported; that's
- >why I limited my query to that specific compiler; else I would've included
- >the target environment.
-
- Don't forget that you are posting to comp.lang.c where the bias is for
- discussing the standard, platform-independent, C language. The place to
- discuss the specific traits and extensions of Borland C is somewhere
- like comp.os.msdos.programmer.
-
- >The Borland C compiler tmpnam() function returns an 8.3 filename, which is
- >insufficient for determining if a filename is unique in any but the default
- >directory (if indeed it does that). I was reluctant to change the default
- >directory for reasons I won't enumerate here.
- >
- >If you're stating that tmpnam() under Borland C does indeed check to see
- >that the file name is unique, I'll quash that reluctance and change the
- >default directory.
-
- I don't know what Borland C actually does. It it is a conforming
- implementation it must ensure that the name it generates is valid and doesn't
- already exist in the filesystem.
-
- >Are you saying you know this as a known fact, or are you simply reciting
- >some ANSI C recommendation?
-
- It is not a recommendation, it is a requirement on any conforming
- implementation.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-